.class public Lcom/waiqin365/lightapp/visit/a/a;
.super Ljava/lang/Object;


# direct methods
.method public static a(Lcom/waiqin365/lightapp/visit/a/c;)Lcom/waiqin365/lightapp/visit/a/d;
    .locals 2

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/a/c;->b()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    const/4 v0, 0x0

    :goto_0
    return-object v0

    :sswitch_0
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/bg;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/a/a/bg;-><init>()V

    goto :goto_0

    :sswitch_1
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/bi;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/a/a/bi;-><init>()V

    goto :goto_0

    :sswitch_2
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/bd;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/a/a/bd;-><init>()V

    goto :goto_0

    :sswitch_3
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/bf;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/a/a/bf;-><init>()V

    goto :goto_0

    :sswitch_4
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/bh;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/a/a/bh;-><init>()V

    goto :goto_0

    :sswitch_5
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/be;

    check-cast p0, Lcom/waiqin365/lightapp/visit/a/a/ax;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/a/a/ax;->a:Lcom/waiqin365/lightapp/visit/b/bn;

    invoke-direct {v0, v1}, Lcom/waiqin365/lightapp/visit/a/a/be;-><init>(Lcom/waiqin365/lightapp/visit/b/bn;)V

    goto :goto_0

    :sswitch_6
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/bk;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/a/a/bk;-><init>()V

    goto :goto_0

    :sswitch_7
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/bj;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/a/a/bj;-><init>()V

    goto :goto_0

    :sswitch_8
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/al;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/a/a/al;-><init>()V

    goto :goto_0

    :sswitch_9
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/aj;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/a/a/aj;-><init>()V

    goto :goto_0

    :sswitch_a
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/at;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/a/a/at;-><init>()V

    goto :goto_0

    :sswitch_b
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/aa;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/a/a/aa;-><init>()V

    goto :goto_0

    :sswitch_c
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/ad;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/a/a/ad;-><init>()V

    goto :goto_0

    :sswitch_d
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/ao;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/a/a/ao;-><init>()V

    goto :goto_0

    :sswitch_e
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/am;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/a/a/am;-><init>()V

    goto :goto_0

    :sswitch_f
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/av;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/a/a/av;-><init>()V

    goto :goto_0

    :sswitch_10
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/ag;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/a/a/ag;-><init>()V

    goto :goto_0

    :sswitch_11
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/ae;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/a/a/ae;-><init>()V

    goto :goto_0

    :sswitch_12
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/ah;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/a/a/ah;-><init>()V

    goto :goto_0

    :sswitch_13
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/ac;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/a/a/ac;-><init>()V

    goto :goto_0

    :sswitch_14
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/as;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/a/a/as;-><init>()V

    goto/16 :goto_0

    :sswitch_15
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/ak;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/a/a/ak;-><init>()V

    goto/16 :goto_0

    :sswitch_16
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/au;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/a/a/au;-><init>()V

    goto/16 :goto_0

    :sswitch_17
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/ab;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/a/a/ab;-><init>()V

    goto/16 :goto_0

    :sswitch_18
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/ap;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/a/a/ap;-><init>()V

    goto/16 :goto_0

    :sswitch_19
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/aw;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/a/a/aw;-><init>()V

    goto/16 :goto_0

    :sswitch_1a
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/af;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/a/a/af;-><init>()V

    goto/16 :goto_0

    :sswitch_1b
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/ar;

    check-cast p0, Lcom/waiqin365/lightapp/visit/a/a/u;

    iget-boolean v1, p0, Lcom/waiqin365/lightapp/visit/a/a/u;->a:Z

    invoke-direct {v0, v1}, Lcom/waiqin365/lightapp/visit/a/a/ar;-><init>(Z)V

    goto/16 :goto_0

    :sswitch_1c
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/b;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/a/a/b;-><init>()V

    goto/16 :goto_0

    :sswitch_1d
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/d;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/a/a/d;-><init>()V

    goto/16 :goto_0

    :sswitch_1e
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/aq;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/a/a/aq;-><init>()V

    goto/16 :goto_0

    :sswitch_1f
    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/ai;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/visit/a/a/ai;-><init>()V

    goto/16 :goto_0

    nop

    :sswitch_data_0
    .sparse-switch
        0x1 -> :sswitch_0
        0x2 -> :sswitch_1
        0x3 -> :sswitch_2
        0x4 -> :sswitch_3
        0x5 -> :sswitch_4
        0x6 -> :sswitch_5
        0x7 -> :sswitch_6
        0x8 -> :sswitch_7
        0x2bd -> :sswitch_8
        0x2be -> :sswitch_9
        0x2bf -> :sswitch_a
        0x2c0 -> :sswitch_b
        0x2c1 -> :sswitch_c
        0x2c2 -> :sswitch_d
        0x2c3 -> :sswitch_e
        0x2c4 -> :sswitch_f
        0x2c5 -> :sswitch_10
        0x2c6 -> :sswitch_11
        0x2c7 -> :sswitch_13
        0x2c8 -> :sswitch_14
        0x2c9 -> :sswitch_19
        0x2ca -> :sswitch_1a
        0x2cb -> :sswitch_1b
        0x2cc -> :sswitch_12
        0x2cd -> :sswitch_1c
        0x2ce -> :sswitch_1f
        0x321 -> :sswitch_15
        0x322 -> :sswitch_16
        0x323 -> :sswitch_17
        0x324 -> :sswitch_18
        0x325 -> :sswitch_1d
        0x326 -> :sswitch_1e
    .end sparse-switch
.end method

.method public static a(Lcom/waiqin365/lightapp/visit/a/c;Z)Lcom/waiqin365/lightapp/visit/a/d;
    .locals 7

    const/4 v6, 0x1

    const/4 v5, 0x0

    const-string/jumbo v0, ""

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v0

    invoke-virtual {v0}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->getApplicationContext()Landroid/content/Context;

    new-instance v1, Ljava/util/HashMap;

    invoke-direct {v1}, Ljava/util/HashMap;-><init>()V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/a/c;->e()Ljava/util/HashMap;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/a/c;->e()Ljava/util/HashMap;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/util/HashMap;->putAll(Ljava/util/Map;)V

    :cond_0
    :try_start_0
    const-string/jumbo v0, "%s%s"

    const/4 v2, 0x2

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    invoke-static {}, Lcom/fiberhome/gaea/client/c/b;->d()Ljava/lang/String;

    move-result-object v4

    aput-object v4, v2, v3

    const/4 v3, 0x1

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/a/c;->c()Ljava/lang/String;

    move-result-object v4

    aput-object v4, v2, v3

    invoke-static {v0, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    if-eqz p1, :cond_1

    invoke-static {}, Lcom/fiberhome/gaea/client/c/b;->c()Lcom/fiberhome/gaea/client/c/c;

    move-result-object v2

    iget-object v2, v2, Lcom/fiberhome/gaea/client/c/c;->d:Ljava/lang/String;

    invoke-static {v2}, Lcom/waiqin365/compons/b/a;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-nez v3, :cond_1

    const-string/jumbo v3, "Host"

    invoke-static {}, Lcom/fiberhome/gaea/client/c/b;->c()Lcom/fiberhome/gaea/client/c/c;

    move-result-object v4

    iget-object v4, v4, Lcom/fiberhome/gaea/client/c/c;->d:Ljava/lang/String;

    invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    invoke-static {}, Lcom/fiberhome/gaea/client/c/b;->c()Lcom/fiberhome/gaea/client/c/c;

    move-result-object v3

    iget-object v3, v3, Lcom/fiberhome/gaea/client/c/c;->d:Ljava/lang/String;

    invoke-virtual {v0, v3, v2}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v0

    :cond_1
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/a/c;->d()Ljava/util/HashMap;

    move-result-object v2

    invoke-static {v0, v1, v2}, Lcom/waiqin365/compons/b/a;->c(Ljava/lang/String;Ljava/util/HashMap;Ljava/util/HashMap;)Ljava/lang/String;

    move-result-object v1

    invoke-static {p0}, Lcom/waiqin365/lightapp/visit/a/a;->a(Lcom/waiqin365/lightapp/visit/a/c;)Lcom/waiqin365/lightapp/visit/a/d;

    move-result-object v0

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/visit/a/d;->a(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_2

    const/16 v2, 0x3ed

    iput v2, v0, Lcom/waiqin365/lightapp/visit/a/d;->a:I

    :cond_2
    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/visit/a/d;->a(Z)V
    :try_end_0
    .catch Ljava/net/SocketTimeoutException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/net/UnknownHostException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2

    :goto_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/a/c;->g()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/visit/a/d;->a(I)V

    return-object v0

    :catch_0
    move-exception v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "\u5ba2\u6237\u62dc\u8bbf\u63a5\u53e3\u901a\u4fe1\u8d85\u65f6\u5f02\u5e38="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v0}, Ljava/net/SocketTimeoutException;->getMessage()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, " cmdtype:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/a/c;->b()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/fiberhome/gaea/client/d/d;->a(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/waiqin365/lightapp/visit/a/a;->a(Lcom/waiqin365/lightapp/visit/a/c;)Lcom/waiqin365/lightapp/visit/a/d;

    move-result-object v0

    invoke-virtual {v0, v5}, Lcom/waiqin365/lightapp/visit/a/d;->a(Z)V

    const/16 v1, 0x3ea

    iput v1, v0, Lcom/waiqin365/lightapp/visit/a/d;->a:I

    iput-boolean v6, v0, Lcom/waiqin365/lightapp/visit/a/d;->l:Z

    goto :goto_0

    :catch_1
    move-exception v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "\u5ba2\u6237\u62dc\u8bbf\u63a5\u53e3\u901a\u4fe1\u4f4d\u7f6e\u57df\u540d\u5f02\u5e38="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v0}, Ljava/net/UnknownHostException;->getMessage()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, " cmdtype:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/a/c;->b()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/fiberhome/gaea/client/d/d;->a(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/waiqin365/lightapp/visit/a/a;->a(Lcom/waiqin365/lightapp/visit/a/c;)Lcom/waiqin365/lightapp/visit/a/d;

    move-result-object v0

    invoke-virtual {v0, v5}, Lcom/waiqin365/lightapp/visit/a/d;->a(Z)V

    const/16 v1, 0x3e9

    iput v1, v0, Lcom/waiqin365/lightapp/visit/a/d;->a:I

    iput-boolean v6, v0, Lcom/waiqin365/lightapp/visit/a/d;->l:Z

    goto :goto_0

    :catch_2
    move-exception v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "\u5ba2\u6237\u62dc\u8bbf\u63a5\u53e3\u901a\u4fe1\u5f02\u5e38="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, " cmdtype:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/a/c;->b()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/fiberhome/gaea/client/d/d;->a(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/waiqin365/lightapp/visit/a/a;->a(Lcom/waiqin365/lightapp/visit/a/c;)Lcom/waiqin365/lightapp/visit/a/d;

    move-result-object v0

    const/16 v1, 0x3ec

    iput v1, v0, Lcom/waiqin365/lightapp/visit/a/d;->a:I

    invoke-virtual {v0, v5}, Lcom/waiqin365/lightapp/visit/a/d;->a(Z)V

    goto/16 :goto_0
.end method
